import request from '../utils/request';
export const ProductGet = query => {
    return request({
        url: 'api/services/app/ProductWork/GetPRoduct',
        method: 'get',
        params: query
    });
};
export const GetId = id => {
    return request({
        url: 'ProductFind?id='+id,
        method: 'get',
    });
};
export const GetMate = query => {
    return request({
        url: 'api/services/app/ProductWork/GetMaterialParticulars',
        method: 'get',
        params: query
    });
};
export const GetRoute = query => {
    return request({
        url: 'api/services/app/ProductWork/GetTick',
        method: 'get',
        params: query
    });
};
export const ProductRoutAdd = data => {
    return request({
        url: 'api/services/app/ProductWork/PlanInsert',
        method: 'post',
        data: data
    });
};
export const GetFirst = query => {
    return request({
        url: 'api/services/app/ProductWork/GetFirst',
        method: 'get',
        params: query
    });
};
export const GetTwo = query => {
    return request({
        url: 'api/services/app/ProductWork/GetTwo',
        method: 'get',
        params: query
    });
};
export const GetThree = query => {
    return request({
        url: 'api/services/app/ProductWork/GetThree',
        method: 'get',
        params: query
    });
};
export const GetFour = query => {
    return request({
        url: 'api/services/app/ProductWork/GetFour',
        method: 'get',
        params: query
    });
};
//工单下载导出Excl
export const  GetProductWorkModelsFile= data=> {
    return request({
        responseType: 'blob', // 重点，responseType设置为 blob
        url:'api/CodingExcel/GetProductWorkModelsFile',
        method: 'get',
        data:data
    });
}